home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-21 | 369 b | 27 lines | [TEXT/ttxt] |
- --<<<
- -- Kaleida Labs, Inc.
- -- Field Guide to the ScriptX Language
- -- chapter 4, example 2
-
- -- create a module to avoid naming conflicts
- module Scratch14 uses ScriptX end
- in module Scratch14
-
- -- declare globals
- global x
-
-
- -- repeat loop examples
- x := 10
- repeat while x > 0 do (
- print (sin x)
- x := x - 1
- )
-
- x := 10
- repeat (
- print x
- x := x - 1
- ) until x == 0
- -->>>
-